<?php
//These are functions neccessary for the site to run properly.

include ($rootpath . '/includes/sqlvariables' . $phpextension);

function getsitestatus()
{
	$sql = "SELECT site_status FROM " . $tableprefix . $maintenance_table . " WHERE site_status = 1";
	$sqlresult = $dbname->sql_query($sql);
	if ($sqlresult == 1)
	{
		$resultbool = true;
	}
	else if ($sqlresult == 0)
	{
		$resultbool = false;
	}
	return $resultbool;
}

?>
